Optimization of virtual machines

ABSTRACT

A resource reservoir is provided. The resource reservoir is a pool of resources that are allocated to and shared between a plurality of reserve virtual machines. A reserve virtual machine of the plurality of reserve virtual machines corresponds to a primary virtual machine from a plurality of primary virtual machines. Each reserve virtual machine of the plurality of reserve virtual machines fulfills a resource requirement from the resource reservoir. The sum of the resources requirements of the plurality of reserve virtual machines is greater than a sum of total resources within the resource reservoir. In response to determining a decrease in performance of the primary virtual machine, at least a portion of workload of the primary virtual machine is applied to the corresponding reserve virtual machine. The resources used by the reserve virtual are indicated as unavailable to the remaining reserve virtual machines from the resource reservoir.

FIELD OF INVENTION

The present invention relates generally to virtual machines and moreparticularly to optimization of providing additional virtual machines tohandle increased workloads.

BACKGROUND

Virtualization is often a core component for servers, cloud computing,and virtual desktop environments (VDE) and is often used in data centersbecause it allows a great deal of flexibility in the provisioning andplacement of servers and their associated workloads in the data center.In system virtualization, multiple virtual computing systems or virtualmachines are created within a single physical computing system. Thephysical system can be a stand-alone computer, or alternatively, acomputing system utilizing clustered computers and components. Virtualsystems, or virtual machines, are independent operating environmentsthat use logical or real divisions of physical resources such asprocessors, memory, and input/output (I/O) adapters. Systemvirtualization is implemented through some managing functionality,typically hypervisor technology. Hypervisors, also called virtualmachine managers (VMMs), use a thin layer of code in software orfirmware to achieve fine-grained, dynamic resource sharing. Hypervisorsare the primary technology for system virtualization because theyprovide the greatest level of flexibility in how virtual resources aredefined and managed.

Virtualization allows a service provider to create a system of resourcesand provide slices of these resources to a plurality of customers vialocal or network access. The agreement between the service provider andcustomer comes in the form of a service-level agreement (SLA) and is acommon business practice known in the art. The SLA can define theduration of service, the quality of service, whether it be in the formof resources allotted or users serviced, a guaranteed availability rate,etc. In addition, the SLA can define the possibility of elasticacquisition of resources to satisfy workload demands outside of thescope of the original SLA. This elastic acquisition of resourcesinvolves the creation of additional virtual machines by the serviceprovider, a process that can take fifteen to twenty minutes, and thenupon creation, allocating the resources of the virtual machine to theconsumer.

SUMMARY

Embodiments of the present invention include a method, computer programproduct, and system for providing additional virtual machines to handleincreased workloads. In one embodiment, a resource reservoir isprovided. The resource reservoir is a pool of resources that areallocated to and shared between a plurality of reserve virtual machines.A reserve virtual machine of the plurality of reserve virtual machinescorresponds to a primary virtual machine from a plurality of primaryvirtual machines. Each reserve virtual machine of the plurality ofreserve virtual machines fulfills a resource requirement from theresource reservoir. The sum of the resources requirements of theplurality of reserve virtual machines is greater than a sum of totalresources within the resource reservoir. A decrease in performance ofthe primary virtual machine is determined. In response to the decreasein performance of the primary virtual machine, at least a portion ofworkload of the primary virtual machine is applied to the correspondingreserve virtual machine. In response to applying at least a portion ofthe workload to the corresponding reserve virtual machine, the resourcesused by the reserve virtual are indicated as unavailable to theremaining reserve virtual machines from the resource reservoir.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

FIG. 1 is a functional block diagram of a distributed data processingenvironment, in accordance with an embodiment of the present invention.

FIG. 2 is a functional block diagram of a virtualization environment, inaccordance with an embodiment of the present invention.

FIG. 3 is a flowchart of the steps of a virtual machine optimization inthe distributed data processing environment of FIG. 1, in accordancewith an embodiment of the present invention.

FIGS. 4A, 4B, and 4C depict flowcharts representative of functions of aninfrastructure manager in the distributed data processing environment ofFIG. 1, in accordance with an embodiment of the present invention.

FIG. 5 is a functional block diagram of a computer system, in accordancewith an embodiment of the present invention.

DETAILED DESCRIPTION

As discussed previously, system virtualization allows for multiplevirtual computing systems or virtual machines to be created within asingle physical computing system. A hypervisor uses a thin layer of codein software or firmware to achieve fine-grained, dynamic resourcesharing and additionally manages the virtual machines, allowing them tocommunicate between each other and separate user computers via a virtualnetwork. Service providers create groupings of machines and then, viaSLAs, can sell slices of these resources to consumers so that theconsumers do not need to spend large amounts of money on permanentphysical machines and instead use the slices of resources from theservice providers as rentals. Alternatively, a SLA is not required forthe function of this invention and embodiments of the present inventioncould occur in a work environment where resources are stored in a remotelocation and accessed but not purchased by a user, e.g., a sharedcomputing environment at a university, a company with their own serverfarm, or any other modification suitable for the foregoing intended use.

If the workload on a virtual machine increases quickly, beyond the pointwhere it can be handled by the existing resource allocation, there canbe a serious decline, perhaps catastrophic, in service quality. In suchan instance, the service provider can provide the consumer withadditional virtual machines to handle the increased workload. However,initializing and creating an additional virtual machine environment cantake extended amounts of time. For example, anywhere from fifteen totwenty minutes. Even when the new resource comes online, recovery fromthe overload condition can take some time. Embodiments of the presentinvention recognize the desirability for a new resource to be brought tobear almost immediately to allow a rapidly increasing workload to beserved with no decline in service quality.

Thus, in an embodiment of the invention, a distributed data processingenvironment solves the aforementioned problem by creating a reservoir ofidle virtual machines that are identical to the primary virtual machine.When a critical event occurs, work is temporarily moved over to areserve virtual machine (an idle virtual machine in a reservoir) while amore permanent solution is created. The reserve virtual machine can bebrought online to handle workload very quickly, e.g., in a matter ofseconds. By doing so, large sudden increases in workload can be handledseamlessly with no decline in service quality. Additionally, reservevirtual machines provide a quick, efficient, and cost effective way toaddress workload demands compared to traditional methods of data centersover-provisioning servers to handle peak loads. For example, datacenters over-provision by up to 400%.

Embodiments of the present invention will now be described withreference to the Figures. FIG. 1 illustrates distributed data processingenvironment 100, in accordance with an embodiment of the presentinvention. Distributed data processing environment 100 includes computersystem 102. Computer system 102 hosts manager 104, primary virtualmachine 120, reservoir 108, including reserve virtual machine 130, andsecondary virtual machine 140. Computer system 102 can be anyprogrammable electronic device as described in further detail withrespect to FIG. 5. In another embodiment, computer system 102 isrepresentative of a system of duplicate computers and components.Manager 104, primary virtual machine 120, reservoir 108, includingreserve virtual machine 130, and secondary virtual machine 140 can befound on separate devices or any combination of devices suitable for theforegoing intended use.

In one embodiment, computer system 102 can be connected to a network(not shown). The network can be, for example, a local area network(LAN), a wide area network (WAN) such as the Internet, or a combinationof the two, and can include wired, wireless, or fiber optic connections.In general, the network can be any combination of connections andprotocols that will support communications between computer system 102and other devices. In one embodiment, computer system 102, manager 104,primary virtual machine 120, reservoir 108, and secondary virtualmachine 140 can communicate with each other via the network and may berouted through a shared Ethernet adaptor.

As depicted, manager 104 includes reservoir capacity planning tool 106and primary virtual machine infrastructure manager 126. Additionally,manager 104 can have any number of additional virtual machineinfrastructure managers to manage any other virtual machines (notshown). Primary virtual machine infrastructure manager 126 providesinformation about the virtual machine it is associated with, in thiscase primary virtual machine 120, along with information about the datathe primary virtual machine 120 is processing and will be discussedlater, in reference to FIG. 2.

In one embodiment, manager 104 can function as a hypervisor (not shown).Here, manager 104 executes in computer system 102 and logically dividesand allocates some or all of the resources of computer system 102amongst primary virtual machine 120 and reservoir 108. Additionally, inan embodiment, resources can be allocated to secondary virtual machine140. In one embodiment, primary virtual machine 120, and any othervirtual machines deployed, can execute independent operating systems.Alternatively, manager 104 can include a separate hypervisor program andeither manager 104 or the hypervisor can perform the operations of thehypervisor discussed below. In another alternative, manager 104 can be ahypervisor.

Hypervisors provide the ability to divide physical computing systemresources into isolated logical partitions. Logical partitioning is theability to logically divide a real, or physical, server into two or moreindependent virtual servers, and one or more applications execute ineach virtual machine or logical partition as if the virtual machine orlogical partition was a separate physical computer. Each logicalpartition, also called a virtual system, virtual server, or virtualmachine, operates like an independent computing system running its ownoperating system. Hypervisors can allocate dedicated processors, I/Oadapters, and memory to each virtual machine and can also allocateshared processors to each virtual machine. In some manners ofvirtualization, the hypervisor creates a shared processor pool fromwhich the hypervisor allocates time slices of virtual processors to thevirtual machines according to predetermined allocation percentages. Inother words, the hypervisor creates virtual processors from physicalprocessors so that virtual machines can share the physical processors,which includes sharing cache space and memory bandwidth, while runningindependent operating environments.

In addition to creating and managing the virtual machines, thehypervisor manages communication between the virtual machines via avirtual network. To facilitate communication, each virtual machine mayhave a virtual adapter for communication between the virtual machines,via the virtual network and with other computing or storage deviceswithin a computing system via a real network. The type of the virtualadapter depends on the operating system used by the virtual machine.Examples of virtual adapters include virtual Ethernet adapters, virtualFiber Channel adapters, virtual Small Computer Serial Interface (SCSI)adapters, and virtual serial adapters.

Manager 104 defines primary virtual machine 120 and other virtualmachines (not shown) from the resources of computer system 104 throughlogical sharing of processors, storage disks, network cards, memory, andother resources. In one embodiment, manager 104 can perform standardoperating system functions and manage communications between a primaryvirtual machine 120, a reserve virtual machine 130, and a secondaryvirtual machine 140 via a virtual switch. Alternatively, manager canalso manage communications between any of the above and a network.

As discussed previously, manager 104 uses a thin layer of code insoftware or firmware to achieve fine-grained, dynamic resource sharingamong primary virtual machine 120, reservoir 108, including reservevirtual machine 130, and secondary virtual machine 140. Manager 104 candynamically allocate and deallocate resources while they are actively inuse by any of the virtual machines. This allows manager 104 tovertically scale resources to optimize performance for primary virtualmachine 120, or any other virtual machines, according to severalthresholds and a variety of parameters stored in manager 104, reservoircapacity planning tool 106, and primary virtual machine infrastructuremanager 126. Primary virtual machine infrastructure manager 126 providesinformation about primary virtual machine 120 and will be discussedlater, in reference to FIG. 2.

Manager 104 includes reservoir capacity planning tool 106. Reservoircapacity planning tool 106 uses analytics and may include one or more ofthe following parameters: the probability of a workload growing, theprobability of a primary virtual machine failing, the rate at which theworkload can grow, the time it takes to deploy a secondary virtualmachine, an SLA stating what percentage of the time a growth in workloadmust be accommodated without delay, etc., to determine a size ofreservoir 108. Alternatively, the size of reservoir 108 can bedetermined by a user preset input, as a user input in real time, or canbe a percentage of the total resources of computer system 102. Inanother embodiment, the functions of reservoir capacity planning tool106 can be performed directly by manager 104 or be a separate programaltogether.

As discussed previously, computer system 102 hosts primary virtualmachine 120. Primary virtual machine 120 includes processor resource 122and memory resource 124. After being allocated resources, primaryvirtual machine 120 may receive a workload to begin processing.

Reservoir 108 is a pool of resources allocated by manager 104 from theoverall resources of computer system 102. The size of reservoir 108 isnot permanent and can change at any time from the size initiallydetermined by reservoir capacity planning tool 106. Reservoir 108resources are available for, allocated to, and shared between allreserve virtual machines found in reservoir 108. In other words, each ofthe plurality of reserve virtual machines found in reservoir 108 areallocated all of the same reservoir 108 resources. Here, the sum of theresource requirements of the plurality of reserve virtual machines isgreater than the sum of the total resources within resource reservoir.As shown in FIG. 1, reservoir 108 hosts reserve virtual machine 130.Reservoir 108 can have any number of reserve virtual machines running in“standby” mode.

In “standby” mode, reserve virtual machine 130 is allocated reservoir108 resources but not actively handling a workload. This is similar tothin provisioning, the act of having the appearance of more physicalresources than are actually available and using this method foroptimizing utilization of available resources. Here, reservoir 108 canallocate resources to large amounts, such as hundreds or thousands, ofreserve virtual machines in “standby” mode concurrently.

When reserve virtual machine 130 switches to “active” mode, reservevirtual machine 130 begins to handle a workload using allocatedprocessor resource 132 and memory resource 134. Processor resource 132and memory resource 134 are then removed from the overall reservoir 108resource pool. The resources requirements of reserve virtual machine 130are fulfilled from the resources of the resource reservoir. In otherwords, the remaining reserve virtual machines in reservoir 108 are nowallocated reservoir 108 resources that remain after processor resource132 and memory resource 134 have been removed, temporarily (whileworkload is being processed in reserve virtual machine 130), from theoverall reservoir 108 resource pool. In other words, it is indicatedthat resources, processor resource 132 and memory resource 134, areunavailable to the remaining reserve virtual machines that receiveresources from resource reservoir. In an embodiment, manager 104 canperform this task, mapping resource fulfillment to reserve virtualmachine(s) and not allowing resources already in use by a reservevirtual machine to be given to a second reserve virtual machine, whenthe second reserve virtual machine needs to fulfill its own resourcerequirements. Here, a large amount of reserve virtual machines are in“standby” mode, with only a small percentage of the machines in “active”mode (actively handling a workload) and applying a workload to theallocated reservoir 108 resources at any given point in time.

In one embodiment, when it is determined by manager 104 or user inputthat a short term solution is needed to address issues of performance ofprimary virtual machine 120, manager 104 uses the resources of reservoir108 that are allocated to reserve virtual machine 130 to handle anincreased workload. This move from “standby” mode to “active” mode, inother words going from the allocated resources not handling a workloadto handling a workload, of reserve virtual machine 130 can take a shortamount of time. For example, the mode change can take milliseconds toseconds. In a preferred embodiment, reserve virtual machine 130 isallocated processor resource 132 and memory resource 134 identical toprocessor resource 122 and memory resource 124, respectively.Alternatively, processor resource 132 and memory resource 134 can be anysize suitable for the foregoing intended use. After being allocatedresources, reserve virtual machine 130 may receive a workload to beginprocessing.

In one embodiment, when it is determined by manager 104 or user inputthat a long term solution is needed to address issues of performance ofprimary virtual machine 120, manager 104 creates secondary virtualmachine 140. As discussed previously, computer system 102 hostssecondary virtual machine 140. Secondary virtual machine 140 isallocated resources from the resources of computer system 102. It cantake a long time to create secondary virtual machine 140. For example,the creation of secondary virtual machine 140 can take up to fifteen totwenty minutes. In a preferred embodiment, secondary virtual machine 140is allocated processor resource 142 and memory resource 144 identical toprocessor resource 122 and memory resource 124, respectively.Alternatively, processor resource 142 and memory resource 144 can be anysize suitable for the foregoing intended use. After being allocatedresources, secondary virtual machine 140 may receive a workload to beginprocessing.

FIG. 2 illustrates virtual environment 200 in accordance with apreferred embodiment of the present invention. Virtual environment 200depicts interconnections between primary virtual machine 120, reservevirtual machine 130, secondary virtual 140, and primary virtual machineinfrastructure manager 126. Primary virtual machine infrastructuremanager 126 includes virtual machine descriptor 202 and session data204.

Virtual machine descriptor 202 stores information about primary virtualmachine 120. For example, virtual machine descriptor 202 has informationabout processor resource 122 allocation, memory resource 124 allocation,primary virtual machine 120 location, reserve virtual machine 130location, secondary virtual machine 140 location, etc. In a preferredembodiment, a manager 104, upon entering into a SLA with a provider,deploys virtual machine descriptor 202 and computer system 102 hostsvirtual machine descriptor 202. Manager 104 uses the information foundin virtual machine descriptor 202 to deploy primary virtual machine 120with the proper processor resource 122 and memory resource 124.Alternatively, virtual machine descriptor 202 can include additionalinformation, such as information about multiple virtual machines workingas a logical unit, the connections between virtual machines, whether itbe with another virtual machine on the same computer or on a separatecomputer, graphic resources, connections to a database, an input device,an output device, or any other resources or devices that would besuitable for the foregoing intended use.

In addition, manager 104 uses virtual machine descriptor 202 to deployreserve virtual machine 130 with processor resource 132 and memoryresource 134. Reserve virtual machine 130 is identical to primaryvirtual machine 120. Upon deployment reserve virtual machine 130 is in“standby” mode. “Standby” mode for reserve virtual machine 130 involvesdeployment of reserve virtual machine 130, the resources are allocatedto reserve virtual machine 130 from reservoir 108 but those allocatedresources are not handling a workload. In other words, the allocatedresources are still available to the entire pool of reserve virtualmachines (not shown) in reservoir 108 and those allocated resources canbe used to handle a workload of a different reserve virtual machine (notshown). If virtual machine descriptor 202 is changed, for example, toincrease allotted memory resource 124, manager 104 updates primaryvirtual machine 120 and reserve virtual machine 130. Additionally, if achange is made to primary virtual machine 120 directly, then virtualmachine descriptor 202 is updated and reserve virtual machine 130 isupdated, as discussed previously. If secondary virtual machine 140 isalready deployed, it is updated by manager 104 in a similar fashion.

Primary virtual machine infrastructure manager 126 also includes sessiondata 204. Session data 204 can be information that is to be processed asit is received by primary virtual machine 120. For example, this couldbe a list of items that users are actively putting into their virtualshopping cart on a Website and then eventually purchasing, by checkingout or information that is submitted about a user such as name, address,birth date, etc. to update a database. Alternatively, session data 204can be information that is input at the creation of the virtual machineand a user can access. For example, this could be a list of all theindividual items available for purchase at a store's Website, adirectory of people in a company including information about saidpeople, etc. In an embodiment, session data 204 can be provided by theconsumer at creation of the SLA, or it could also be provided by aplurality of users in real time. In an embodiment, session data 204 canalso be hosted in cache (not shown) as discussed later in reference toworkflows 320 and 328.

Additionally, manager 104 includes an analytics program (not shown). Theanalytics program can be found internal to manager 104 or can be aseparate program. The analytics program is used to predict the need fordeployment of secondary virtual machine 140 based upon historical dataand real time data, as discussed later in FIG. 3. In an embodiment, theanalytics program is specifically tailored to the requirements ofprimary virtual machine 120. Alternatively, the analytics program couldbe tailored to the requirements of one, some, or all virtual machineshosted on computer system 102.

FIG. 3 shows a function of manager 104 for optimization of providingadditional virtual machines to handle increased workloads, referred toherein as optimization function 300, in accordance with an embodiment ofthe present invention. In other embodiments, optimization function 300could take place anywhere in primary virtual machine infrastructuremanager 126 after it has been deployed, primary virtual machine 120after it has been deployed, or any other programs not shown but thatwill be apparent to those of ordinary skill in the art without departingfrom the scope and spirit of the described embodiments. The steps ofoptimization function 300 do not need to occur in the order displayedand can occur in any order or organization suitable for the foregoingintended use.

Manager 104 deploys primary virtual machine infrastructure manager 126(step 302). Within primary virtual machine infrastructure manager 126,virtual machine descriptor 202 and session data 204 are deployed orimported. In a preferred embodiment, a user can manually tell manager104 to deploy primary virtual machine infrastructure manager 126 usingthe terms of the SLA, or an automated program can perform these steps.Alternatively, primary virtual machine infrastructure manager 126 can bedeployed by manager 104 without an SLA, e.g., deploying virtual machineswithin a company using resources already on hand. Additionally, an SLAis not required, and any other agreement to provide resources may beused that is suitable for the foregoing intended use.

Manager 104 deploys primary virtual machine 120 (step 304). Using theinformation in virtual machine descriptor 202, manager 104 deploysprimary virtual machine 120 with the required processor resource 122 andmemory resource 124, from the resources of computer system 102.Alternatively, processor resource 122 and memory resource 124 can befulfilled from any computer on any network.

Manager 104 deploys reserve virtual machine 130 (step 306). Manager 104creates reserve virtual machine 130 with processor resource 132 andmemory resource 134 allocations from reservoir 108 resources. In apreferred embodiment, processor resource 132 and 122 are identical andmemory resource 134 and 124 are identical; however, any size combinationis possible. When manager 104 deploys reserve virtual machine 130 it isin “standby” mode, as discussed previously. In “standby” mode, reservevirtual machine 130 is allocated resources but not processing aworkload, for example, session data 204. In the event that reservevirtual machine 130 is moved from “standby” mode to “active” mode,processor resource 132 and memory resource 134 can handle a workload,and processor resource 132 and memory resource 134 are removed from theresource pool of reservoir 108. In an embodiment, this change from“standby” mode to “active” mode can occur in a matter of milliseconds toseconds. Reservoir 108 resources remaining for the other reserve virtualmachines (not shown) is now only what is remaining after processorresource 132 and memory resource 134 are removed from the resource poolof reservoir 108. In “active” mode, reserve virtual machine 130 doeshave processor resource 132 and memory resource 134 allocated fromreservoir 108, and reserve virtual machine 130 is processing informationfrom session data 204. Here, no other reserve virtual machine (notshown) have processor resource 132 and memory resource 134 allocated tothem.

Manager 104 applies workload to primary virtual machine 120 (step 308).In one embodiment, primary virtual machine 120 receives session data 204and processes it. For example, session data 204 could be a list of itemsfor sale in the store, and primary virtual machine 120 analyzes andprepares the session data 204 to be displayed on a Website for aconsumer to access or shop from. Alternatively, session data 204 couldbe a list of active items in one or more users' shopping carts andprimary virtual machine 120 maintains the contents of the shopping cartsin real time and then processes a checkout procedure for those items forone or more consumers.

Manager 104 monitors the performance of primary virtual machine 120(step 310). During this step manager 104 performs analytics todetermine, based on historical information, whether secondary virtualmachine 140 should be created preemptively even though there has been nodegradation in performance of primary virtual machine 120. If manager104 determines that based on the analytics, secondary virtual machine140 needs to be deployed, manager 104 deploys secondary virtual machine140 similar to secondary virtual machine 140 deployment (step 316).

Manager 104 determines if the SLA is satisfied (decision block 312). Inother words, can primary virtual machine 120 still handle the workloadallocated to it or has the performance degraded enough that additionalresources are needed. If there is no degradation in performance(decision block 312, yes branch), then primary virtual machine 120continues to process workload in a normal manner (step 308). However, ifthe SLA is no longer satisfied, or if there is a degradation inperformance by primary virtual machine 120, then further action must betaken.

If the SLA is no longer satisfied (decision block 312, no branch),manager 104 determines if the performance degradation duration is along-term event (decision block 314). During this step manager 104performs analytics to determine, based on historical data, real-timedata and the terms of the SLA, whether secondary virtual machine 140should be created. For example, manager 104 determines if the durationof the performance decrease in primary virtual machine 120 is longenough to warrant the creation of secondary virtual machine 140 whichcan take a longer period of time to initialize, i.e., fifteen to twentyminutes. Alternatively, manager 104 may anticipate that the duration ofthe performance decrease in primary virtual machine 120 is shorter sothe performance decrease can be remedied with reserve virtual machine130 that can be employed in a very short time, i.e., milliseconds toseconds. If manager 104 determines that secondary virtual machine 140 isneeded, then manager 104 deploys secondary virtual machine 140, but ifthe secondary virtual machine 140 is not needed then manager 104proceeds directly to activating reserve virtual machine 130.

If manager 104 determines that duration of performance decrease is notgoing to be long (decision block 314, no branch), manager 104 activatesreserve virtual machine 130 (step 318). Here, manager 104 moves reservevirtual machine 130 from “sleep” mode to “active” mode so that reservevirtual machine 130 handles a workload. In other words, reserve virtualmachine 130 has the allocated resources from reservoir 108 placed in“active” mode, and processor resource 142 and memory resource 144 are nolonger allocated to other reserve virtual machines (not shown) in thereservoir. This allows reserve virtual machine 130 to temporarily helpprimary virtual machine 120 to handle increased workload while secondaryvirtual machine 140 is created as a more permanent solution.

If manager 104 determines that duration of performance decrease is goingto be long (decision block 314, yes branch), manager 104 deployssecondary virtual machine 140 (step 316). When it is determined in theprevious step that there is a need for the creation of secondary virtualmachine 140, manager 104 updates virtual machine descriptor 202. Usingthe information found in virtual machine descriptor 202, manager 104deploys secondary virtual machine 140 from the resources of computersystem 102 and hosts it on computer system 102. In a preferredembodiment, secondary virtual machine 140 has processor resource 142 andmemory resource 144, which are identical to processor resource 122 andmemory resource 124, related to primary virtual machine 120.Additionally, secondary virtual machine 140 has any other resourcesassociated with it that are also associated with primary virtual machine120. Alternatively, manager 104 uses one or more of the followingparameters related to one or more workloads and their deployments to oneor more virtual machines to determine the size of resource allocation tosecondary virtual machine 140: the probability of a workload growing,the probability of a primary virtual machine failing, the rate at whichthe workload can grow, an SLA stating what percentage of the time agrowth in workload must be accommodated without delay, etc. Manager 104then activates reserve virtual machine 130 (step 318).

Manager 104 applies the workload to primary virtual machine 120 andreserve virtual machine 130 (step 320). In other words, primary virtualmachine 120 and reserve virtual machine 130 process session data 204.The total workload of session data 204 is shared between primary virtualmachine 120 and reserve virtual machine 130. This step will be discussedfurther in reference to FIG. 4B.

Manager 104 determines if secondary virtual machine 140 was deployed ina previous step (decision block 322). If secondary virtual machine 140was not deployed, then primary virtual machine 120 and reserve virtualmachine 130 continue to process session data 204. If secondary virtualmachine 140 was deployed, manager 104 determines if that deployment iscompleted and secondary virtual machine 140 is ready to have a workloadapplied to it. If secondary virtual machine 140 has not completeddeployment, a loop begins (not shown) that determines when secondaryvirtual machine 140 has been deployed. When secondary virtual machine140 deployment has been completed, then manager 104 applies the workloadto primary virtual machine 120 and secondary virtual machine 140.

If secondary virtual machine 140 was not deployed (decision block 322,no branch), manager 104 determines that primary virtual machine 120 andreserve virtual machine 130 have completed processing the workload (step324). In other words, primary virtual machine 120 and reserve virtualmachine 130 process session data 204 to the point where manager 104determines that reserve virtual machine 130 is not needed to helpprimary virtual machine 120 process the session data 204 to remedy aloss in performance. For example, a short-term spike in shoppingpurchases on a Website causes an increase in session data 204 to thepoint where reserve virtual machine 130 is needed but now that purchaseshave been processed and no additional purchases are being added to thequeue, reserve virtual machine 130 does not have session data 204 toprocess because primary virtual machine 120 can handle the entireworkload.

Manager 104 places reserve virtual machine 130 in “standby” mode (step326). In other words, reserve virtual machine 130 has finishedprocessing session data 204 in “active” mode and can now be placed in“standby” mode so that the processor resource 132 and memory resource134 of reserve virtual machine 130 are returned to the resource pool ofreservoir 108, and the resources can be allocated to all reserve virtualmachines (not shown) that are in “standby” mode, as discussedpreviously. Once this step has been completed, reserve virtual machine130 is not processing any session data 204. At this point primaryvirtual machine 120 is processing the workload of session data 204independently.

If secondary virtual machine 140 was deployed and deployment wascompleted (decision block 322, yes branch), manager 104 applies theworkload to primary virtual machine 120 and secondary virtual machine140 (step 328). In other words, primary virtual machine 120 andsecondary virtual machine 140 process session data 204. The totalworkload of session data 204 is shared between primary virtual machine120 and secondary virtual machine 140. This step will be discussedfurther in reference to FIG. 4C.

Manager 104 places reserve virtual machine 130 in “standby” mode (step330). In other words, reserve virtual machine 130 has finishedprocessing session data 204 in “active” mode and can now be placed in“standby” mode so that the processor resource 132 and memory resource134 of reserve virtual machine 130 are now returned to the resource poolof reservoir 108, as discussed previously. Once this step has beencompleted, reserve virtual machine 130 is not processing any sessiondata 204. At this point primary virtual machine 120 and secondaryvirtual machine 140 are processing session data 204 together. This stepis similar to step 326.

Manager 104 determines that primary virtual machine 120 and secondaryvirtual machine 140 have completed processing the workload (step 332).In other words, primary virtual machine 120 and secondary virtualmachine 140 process session data 204 to the point where manager 104determines that secondary virtual machine 140 is not needed to helpprimary virtual machine 120 process the session data 204 to remedy aloss in performance. For example, a long-term spike in shippingpurchases on a Website, i.e., a weekend during the holiday season,causes an increase in session data 204 to the point where secondaryvirtual machine 140 was needed long term, but now that the increases inpurchases have been processed and the holiday season is over, secondaryvirtual machine 140 does not have session data 204 to process becauseprimary virtual machine 120 can handle the entire workload.

Manager 104 deallocates the resources for secondary virtual machine 140(step 334). In other words, secondary virtual machine 140 is no longerneeded and processor resource 142, memory resource 144, and any otherresources allocated to secondary virtual machine 140 are returned tocomputer system 102. Secondary virtual machine 140 no longer exists andcan be recreated at a later time if the need arises.

FIGS. 4A, 4B, and 4C show functional block diagrams of distributed dataprocessing environment workflows 410, 320, and 328, respectively, inaccordance with an embodiment of the present invention. Manager 104 caninvoke workflows 410, 320, and 328 upon the completion of a previoustask or upon a user request, for example. In another embodiment,workflows 410, 320, and 328 can be invoked automatically under thecontrol of another program.

Turning now to FIG. 4A, workflow 410 depicts manager 104 performing areal-time update of virtual machine descriptor 202 and the correspondingreal-time update of primary virtual machine 120 and reserve virtualmachine 130. Workflow 410 can occur at any time after the creation ofprimary virtual machine 120 and before the deallocation of resources ofprimary virtual machine 120. This workflow occurs independently of anyother workflows or functions found herein. In step 412, manager 104updates virtual machine descriptor 202. Alternatively, virtual machinedescriptor 202 can be updated by a user input or any other program.

Manager 104 updates primary virtual machine 120 per the update tovirtual machine descriptor 202 (step 412). Manager 104 analyzes theupdated virtual machine descriptor 202 and makes the appropriate changesto resource allocations in primary virtual machine 120 (step 414).Manager 104 updates reserve virtual machine 130 per the update tovirtual machine descriptor 202 (step 416). Manager 104 analyzes theupdated virtual machine descriptor 202 and makes the appropriate changesto the resource allocations of reserve virtual machine 130. Workflow 410provides reserve virtual machine 130 with the most up to date virtualmachine information so that in the case where performance in primaryvirtual machine 120 decreases and reserve virtual machine 130 isnecessary to combat these performance issues, reserve virtual machine130 will have identical resource allocations so that the correctresources can be used by reserve virtual machine 130 and reserve virtualmachine 130 can be integrated quickly and seamlessly.

Turning now to FIG. 4B, workflow 320 depicts an expanded view of thetransition from primary virtual machine 120 handling the workload ofsession data 204 to primary virtual machine 120 and reserve virtualmachine 130 handling the workload of session data 204 together (step320). Manager 104 stops applying workload to primary virtual machine 120(step 422). In other words, primary virtual machine 120 stops processingsession data 204. Manager 104 syncs session data 204 with primaryvirtual machine 120 (step 424). Here, manager 104 updates session data204 so all the work that primary virtual machine 120 has done processingsession data 204 is known. In other words, manager 104 is tellingsession data 204 how far primary virtual machine 120 has gone throughsession data 204 and where in session data 204 a new set of virtualmachines can begin and continue processing session data 204.

Manager 104 syncs primary virtual machine 120 and reserve virtualmachine 130 with session data 204 (step 426). Here, manager 104 updatesprimary virtual machine 120 and reserve virtual machine 130 so that bothvirtual machines know what session data 204 remains to be processed andwhere they can both start working when the workload is applied. In otherwords, manager 104 tells both virtual machines how far other virtualmachines have advanced through processing session data 204. Manager 104applies workload to primary virtual machine 120 and reserve virtualmachine 130 (step 428). Here, primary virtual machine 120 and reservevirtual machine 130 begin processing session data 204 together. In otherwords, primary virtual machine 120 and reserve virtual machine 130 nowhave an identical set of session data 204 and can process session data204 together to complete the workload in a faster time than if either ofthe virtual machines were working by themselves.

Turning now to FIG. 4C, workflow 328 depicts an expanded view of thetransition from primary virtual machine 120 and reserve virtual machine130 handling the workload of session data 204 to primary virtual machine120 and secondary virtual machine 140 handling the workload of sessiondata 204 together (step 328). Manager 104 stops applying workload toprimary virtual machine 120 and reserve virtual machine 130 (step 432).In other words, primary virtual machine 120 and reserve virtual machine130 stop processing session data 204. Manager 104 syncs session data 204with primary virtual machine 120 and reserve virtual machine 130 (step434). Here, manager 104 updates session data 204 so all the work thatprimary virtual machine 120 and reserve virtual machine 130 have doneprocessing session data 204 is known. In other words, manager 104 istelling session data 204 how far primary virtual machine 120 and reservevirtual machine 130 have gone through session data 204 and where insession data 204 a new set of virtual machines can pick up and continueprocessing.

Manager syncs primary virtual machine 120 and secondary virtual machine140 with session data 204 (step 436). Here, manager 104 updates primaryvirtual machine 120 and secondary virtual machine 140 so that bothvirtual machines know what session data 204 remains to be processed andwhere they can both start working when the workload is applied. In otherwords, manager 104 tells both virtual machines how far other virtualmachines have advanced through processing session data 204. Manager 104applies workload to primary virtual machine 120 and secondary virtualmachine 140 (step 438). Here, primary virtual machine 120 and secondaryvirtual machine 140 begin processing session data 204 together. In otherwords, primary virtual machine 120 and secondary virtual machine 140 nowhave an identical set of session data 204 and can process session data204 together to complete the workload in a faster time than if either ofthe virtual machines were working by themselves.

In an embodiment, workflows 320 and 328 can be performed with the use ofa cache (not shown). Cache is a block of memory for temporary storage ofdata likely to be used again. Here, the cache may be located in and be apart of computer system 102. Alternatively, cache can be located on anycomputer systems, as discussed in alternative embodiments, or cache canbe located on an independent and separate computer system not discussedpreviously. The data that is stored within a cache might be values thathave been computed or duplicates of original values that are storedelsewhere. If requested data is contained in the cache (cache hit), thisrequest can be served by simply reading the cache, which iscomparatively faster. Otherwise, the data has to be recomputed orfetched from its original storage location (cache miss), which iscomparatively slower. Therefore, the greater the number of requests thatcan be served from the cache, the faster the overall system performancebecomes.

In an embodiment, session data 204 can utilize cache upon deployment ofprimary virtual machine 120. Here, session data 204 can be placed incache upon creation of session data 204. For example, when manager 104deploys primary virtual machine 120, manager 104, or any other program,can place a copy of session data 204 the cache. When primary virtualmachine 120 needs to use or access session data 204, primary virtualmachine 120 can access session data 204 from the cache for a fasterresponse. In an alternative embodiment, this placement of session data204 in the cache can occur when reserve virtual machine 130 is placed in“active” mode or when secondary virtual machine 140 is created. Here,session data 204 is placed in cache when workflows 320 or 328 will beused, such as in embodiments that require the use of reserve virtualmachine 130 or secondary virtual machine 140. Session data 204 locatedin the cache will increase the speed and response time of workflows 320or 328 by speeding up sync steps (step 424, 426, 434 and 436) becausesession data 204 will be synced using the cache (cache hit).

The above mentioned embodiments provide multiple advantages over theprior art. First, there are savings in allocation of resources. Datacenters over provision their servers to handle peak workloads, in somecases up to 400%. Here, since the reservoir 108 can host a plurality ofreserve virtual machines 130, this smaller allocation of resources canservice multiple virtual machines short-term performance needs viareserve virtual machines. Additionally, secondary virtual machine 140handles long term needs for a plurality of virtual machines but onlywhen needed. Therefore, the resources of secondary virtual machine 140can be shared as a long-term solution for primary virtual machines 120as all secondary virtual machines will not be in use at the same time.This leads to a decrease in over-provisioning which decreases the needfor additional server computers to handle increased workloads/decreasesin performance on virtual machines.

Second, the preferred embodiment of the invention provides a quickerresponse to increased workloads and decreases in performance as comparedto the prior art. Reserve virtual machine 130 hosted from the resourcesof reservoir 108 can move from “standby” to “active” in a matter ofmilliseconds to seconds. This compares to current solutions, thedeployment of a new virtual machine, which can take much longer, e.g.,fifteen to twenty minutes. This quick response allows for the eventualcreation of a more permanent solution, e.g., secondary virtual machine140, without suffering performance decreases in the interim due to thequick response of reserve virtual machine 130. This structure maintainsa high level of performance no matter the level of increase in sessiondata 204 that must be processed.

FIG. 5 depicts a block diagram of components of computer system 102, inaccordance with an illustrative embodiment of the present invention. Itshould be appreciated that FIG. 5 provides only an illustration of oneimplementation and does not imply any limitations with regard to theenvironments in which different embodiments may be implemented. Manymodifications to the depicted environment may be made.

Computer system 102 includes communications fabric 502, which providescommunications between computer processor(s) 504, memory 506, persistentstorage 508, communications unit 510, and input/output (I/O)interface(s) 512. Communications fabric 502 can be implemented with anyarchitecture designed for passing data and/or control informationbetween processors (such as microprocessors, communications and networkprocessors, etc.), system memory, peripheral devices, and any otherhardware components within a system. For example, communications fabric502 can be implemented with one or more buses.

Memory 506 and persistent storage 508 are computer readable storagemedia. In this embodiment, memory 506 includes random access memory(RAM) 514 and cache memory 516. In general, memory 506 can include anysuitable volatile or non-volatile computer readable storage media.

Programs are stored in persistent storage 508 for execution by one ormore of the respective computer processor(s) 504 via one or morememories of memory 506. In this embodiment, persistent storage 508includes a magnetic disk. Alternatively, or in addition to a magnetichard disk drive, persistent storage 508 can include a solid-state harddrive, a semiconductor storage device, a read-only memory (ROM), anerasable programmable read-only memory (EPROM), flash memory, or anyother computer readable storage media that is capable of storing programinstructions or digital information.

The media used by persistent storage 508 may also be removable. Forexample, a removable hard drive may be used for persistent storage 508.Other examples include optical and magnetic disks, thumb drives, andsmart cards that are inserted into a drive for transfer onto anothercomputer readable storage medium that is also part of persistent storage508.

Communications unit 510, in these examples, provides for communicationswith other data processing systems or devices. In these examples,communications unit 510 includes one or more network interface cards.Communications unit 510 may provide communications through the use ofeither or both physical and wireless communications links. A program maybe downloaded to persistent storage 508 through communications unit 510.

I/O interface(s) 512 allows for input and output of data with otherdevices that may be connected to computer system 102. For example, I/Ointerface(s) 512 may provide a connection to external device(s) 518 suchas a keyboard, a keypad, a touch screen, and/or some other suitableinput device. External device(s) 518 can also include portable computerreadable storage media such as, for example, thumb drives, portableoptical or magnetic disks, and memory cards. Software and data used topractice embodiments of the present invention, e.g., manager 104, can bestored on such portable computer readable storage media and can beloaded onto persistent storage 508 via I/O interface(s) 512. I/Ointerface(s) 512 also connect to a display 520.

Display 520 provides a mechanism to display data to a user and may be,for example, a computer monitor.

The present invention may be a system, a method, and/or a computerprogram product. The computer program product may include a computerreadable storage medium (or media) having computer readable programinstructions thereon for causing a processor to carry out aspects of thepresent invention.

The computer readable storage medium can be a tangible device that canretain and store instructions for use by an instruction executiondevice. The computer readable storage medium may be, for example, but isnot limited to, an electronic storage device, a magnetic storage device,an optical storage device, an electromagnetic storage device, asemiconductor storage device, or any suitable combination of theforegoing. A non-exhaustive list of more specific examples of thecomputer readable storage medium includes the following: a portablecomputer diskette, a hard disk, a random access memory (RAM), aread-only memory (ROM), an erasable programmable read-only memory (EPROMor Flash memory), a static random access memory (SRAM), a portablecompact disc read-only memory (CD-ROM), a digital versatile disk (DVD),a memory stick, a floppy disk, a mechanically encoded device such aspunch-cards or raised structures in a groove having instructionsrecorded thereon, and any suitable combination of the foregoing. Acomputer readable storage medium, as used herein, is not to be construedas being transitory signals per se, such as radio waves or other freelypropagating electromagnetic waves, electromagnetic waves propagatingthrough a waveguide or other transmission media (e.g., light pulsespassing through a fiber-optic cable), or electrical signals transmittedthrough a wire.

Computer readable program instructions described herein can bedownloaded to respective computing/processing devices from a computerreadable storage medium or to an external computer or external storagedevice via a network, for example, the Internet, a local area network, awide area network, and/or a wireless network. The network may comprisecopper transmission cables, optical transmission fibers, wirelesstransmission, routers, firewalls, switches, gateway computers, and/oredge servers. A network adapter card or network interface in eachcomputing/processing device receives computer readable programinstructions from the network and forwards the computer readable programinstructions for storage in a computer readable storage medium withinthe respective computing/processing device.

Computer readable program instructions for carrying out operations ofthe present invention may be assembler instructions,instruction-set-architecture (ISA) instructions, machine instructions,machine dependent instructions, microcode, firmware instructions,state-setting data, or either source code or object code written in anycombination of one or more programming languages, including anobject-oriented programming language such as Smalltalk, C++ or the like,and conventional procedural programming languages, such as the “C”programming language or similar programming languages. The computerreadable program instructions may execute entirely on the user'scomputer, partly on the user's computer, as a stand-alone softwarepackage, partly on the user's computer and partly on a remote computer,or entirely on the remote computer or server. In the latter scenario,the remote computer may be connected to the user's computer through anytype of network, including a local area network (LAN) or a wide areanetwork (WAN), or the connection may be made to an external computer(for example, through the Internet using an Internet Service Provider).In some embodiments, electronic circuitry including, for example,programmable logic circuitry, field-programmable gate arrays (FPGA), orprogrammable logic arrays (PLA) may execute the computer readableprogram instructions by utilizing state information of the computerreadable program instructions to personalize the electronic circuitry,in order to perform aspects of the present invention.

Aspects of the present invention are described herein with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems), and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer readable program instructions.

These computer readable program instructions may be provided to aprocessor of a general purpose computer, a special purpose computer, orother programmable data processing apparatus to produce a machine, suchthat the instructions, which execute via the processor of the computeror other programmable data processing apparatus, create means forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks. These computer readable program instructionsmay also be stored in a computer readable storage medium that can directa computer, a programmable data processing apparatus, and/or otherdevices to function in a particular manner, such that the computerreadable storage medium having instructions stored therein comprises anarticle of manufacture including instructions which implement aspects ofthe function/act specified in the flowchart and/or block diagram blockor blocks.

The computer readable program instructions may also be loaded onto acomputer, other programmable data processing apparatus, or other deviceto cause a series of operational steps to be performed on the computer,other programmable apparatus, or other device to produce a computerimplemented process, such that the instructions which execute on thecomputer, other programmable apparatus, or other device implement thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods, and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof instructions, which comprises one or more executable instructions forimplementing the specified logical function(s). In some alternativeimplementations, the functions noted in the block may occur out of theorder noted in the Figures. For example, two blocks shown in successionmay, in fact, be executed substantially concurrently, or the blocks maysometimes be executed in the reverse order, depending upon thefunctionality involved. It will also be noted that each block of theblock diagrams and/or flowchart illustration, and combinations of blocksin the block diagrams and/or flowchart illustration, can be implementedby special purpose hardware-based systems that perform the specifiedfunctions or acts or carry out combinations of special purpose hardwareand computer instructions.

The programs described herein are identified based upon the applicationfor which they are implemented in a specific embodiment of theinvention. However, it should be appreciated that any particular programnomenclature herein is used merely for convenience, and thus, theinvention should not be limited to use solely in any specificapplication identified and/or implied by such nomenclature.

The descriptions of the various embodiments of the present inventionhave been presented for purposes of illustration but are not intended tobe exhaustive or limited to the embodiments disclosed. Manymodifications and variations will be apparent to those of ordinary skillin the art without departing from the scope and spirit of the describedembodiments. The terminology used herein was chosen to best explain theprinciples of the embodiments, the practical application or technicalimprovement over technologies found in the marketplace, or to enableothers of ordinary skill in the art to understand the embodimentsdisclosed herein.

What is claimed is:
 1. A computer-implemented method for providingadditional virtual machines to handle increased workloads, the methodcomprising the steps of: providing a resource reservoir, wherein theresource reservoir is a pool of resources that are allocated to andshared between a plurality of reserve virtual machines, a reservevirtual machine of the plurality of reserve virtual machinescorresponding to a primary virtual machine from a plurality of primaryvirtual machines, wherein each reserve virtual machine of the pluralityof reserve virtual machines fulfills a resource requirement from theresource reservoir, and wherein a sum of the resource requirements ofthe plurality of reserve virtual machines is greater than a sum of totalresources within the resource reservoir; determining, by one or morecomputer processors, a decrease in performance of the primary virtualmachine; in response to the decrease in performance of the primaryvirtual machine, applying at least a portion of workload of the primaryvirtual machine to the corresponding reserve virtual machine; and inresponse to applying at least a portion of the workload to thecorresponding reserve virtual machine, indicating that resources used bythe reserve virtual machine are unavailable to remaining reserve virtualmachines from the resource reservoir.
 2. The method of claim 1, furthercomprising: determining, by one or more computer processors, thedecrease in performance of the primary virtual machine will last past athreshold length; deploying a secondary virtual machine; and applying atleast a portion of the workload of the primary virtual machine and thereserve virtual machine to the primary virtual machine and the secondaryvirtual machine.
 3. The method of claim 1, further comprising: applyingall of the workload to the primary virtual machine when the reservevirtual machine is not needed to address the decrease in performance ofthe primary virtual machine; and indicating resources used by thereserve virtual machine are available to the plurality of reservevirtual machines from the resource reservoir.
 4. The method of claim 1,further comprising: determining, by one or more computer processors, asize of the resource reservoir from a number of parameters comprising: aprobability of the workload growing, a probability of the primaryvirtual machine failing, a rate at which the workload can grow, a timeit takes to deploy a secondary virtual machine, and an agreement statingwhat percentage of time a growth in the workload must be accommodatedwithout delay.
 5. The method of claim 1, wherein applying at least aportion of the workload of the primary virtual machine to the reservevirtual machine comprises: providing a cache; transferring the workloadto the cache; updating the workload on the cache with progress made onthe workload by the primary virtual machine; updating the reservevirtual machine with the workload on the cache; and applying theworkload on the cache to the primary virtual machine and the reservevirtual machine, wherein the workload is shared between both virtualmachines.
 6. The method of claim 2, wherein applying at least a portionof the workload of the primary virtual machine and the reserve virtualmachine to the primary virtual machine and the secondary virtual machinecomprises: providing a cache; transferring the workload to the cache;updating the workload on the cache with progress made on the workload bythe primary virtual machine and reserve virtual machine; updating thesecondary virtual machine with the workload on the cache; applying theworkload on the cache to the primary virtual machine and the secondaryvirtual machine, wherein the workload is shared between both virtualmachines; and indicating resources used by the reserve virtual machineare available to the plurality of reserve virtual machines from theresource reservoir.
 7. The method of claim 2, wherein determining thedecrease in performance of the primary virtual machine will last past athreshold length comprises: analyzing historical data of the primaryvirtual machine; analyzing real-time data of the primary virtualmachine; analyzing terms of a service-level agreement corresponding tothe primary virtual machine; estimating, based on at least one of thehistorical data, real-time data, and terms of a service-level agreement,a length of the performance decrease in the primary virtual machine; anddetermining, by one or more computer processors, if the length of thedecrease in performance of the primary virtual machine warrants creationof the secondary virtual machine.
 8. A computer program product forproviding additional virtual machines to handle increased workloads, thecomputer program product comprising: one or more computer readabletangible storage device; and program instructions stored on the one ormore computer readable tangible storage device, the program instructionscomprising: program instructions to provide a resource reservoir,wherein the resource reservoir is a pool of resources that are allocatedto and shared between a plurality of reserve virtual machines, a reservevirtual machine of the plurality of reserve virtual machinescorresponding to a primary virtual machine from a plurality of primaryvirtual machines, wherein each reserve virtual machine of the pluralityof reserve virtual machines fulfills a resource requirement from theresource reservoir, and wherein a sum of the resource requirements ofthe plurality of reserve virtual machines is greater than a sum of totalresources within the resource reservoir; program instructions todetermine a decrease in performance of the primary virtual machine;program instructions to, in response to the decrease in performance ofthe primary virtual machine, apply at least a portion of workload of theprimary virtual machine to the corresponding reserve virtual machine;and program instructions to, in response to applying at least a portionof the workload to the corresponding reserve virtual machine, indicatethat resources used by the reserve virtual machine are unavailable toremaining reserve virtual machines from the resource reservoir.
 9. Thecomputer program product of claim 8, further comprising programinstructions, stored on the one or more computer readable tangiblestorage device, to: determine the decrease in performance of the primaryvirtual machine will last past a threshold length; deploy a secondaryvirtual machine; and apply at least a portion of the workload of theprimary virtual machine and the reserve virtual machine to the primaryvirtual machine and the secondary virtual machine.
 10. The computerprogram product of claim 8, further comprising program instructions,stored on the one or more computer readable tangible storage device, to:apply all of the workload to the primary virtual machine when thereserve virtual machine is not needed to address the decrease inperformance of the primary virtual machine; and indicate resources usedby the reserve virtual machine are available to the plurality of reservevirtual machines from the resource reservoir.
 11. The computer programproduct of claim 8, further comprising program instructions, stored onthe one or more computer readable tangible storage device, to: determinea size of the resource reservoir from a number of parameters comprising:a probability of the workload growing, a probability of the primaryvirtual machine failing, a rate at which the workload can grow, a timeit takes to deploy a secondary virtual machine, and an agreement statingwhat percentage of time a growth in the workload must be accommodatedwithout delay.
 12. The computer program product of claim 8, wherein theprogram instructions to apply at least a portion of the workload of theprimary virtual machine to the primary virtual machine and the reservevirtual machine comprise: program instructions to provide a cache;program instruction to transfer a workload to the cache; programinstructions to update the workload on the cache with progress made onthe workload by the primary virtual machine; program instructions toupdate the reserve virtual machine with the workload on the cache;program instructions to apply the workload on the cache to the primaryvirtual machine and the reserve virtual machine, wherein the workload isshared between both virtual machines; and program instructions toindicate resources used by the reserve virtual machine are available tothe plurality of reserve virtual machines from the resource reservoir.13. The computer program product of claim 9, wherein the programinstructions to apply at least a portion of the workload of the primaryvirtual machine and the reserve virtual machine to the secondary virtualmachine comprise: program instructions to provide a cache; programinstructions to transfer the workload to the cache; program instructionsto update the workload on the cache with progress made on the workloadby the primary virtual machine and reserve virtual machine; programinstruction to update the secondary virtual machine with the workload onthe cache; and program instructions to apply the workload on the cacheto the primary virtual machine and the secondary virtual machine,wherein the workload is shared between both virtual machines.
 14. Thecomputer program product of claim 9, wherein the program instructions todetermine the decrease in performance of the primary virtual machinewill last past a threshold length comprise: program instructions toanalyze historical data of the primary virtual machine; programinstructions to analyze real-time data of the primary virtual machine;program instructions to analyze terms of a service-level agreementcorresponding to the primary virtual machine; program instructions toestimate, based on at least one of historical data, real-time data, andterms of a service-level agreement, a length of the performance decreasein the primary virtual machine; and program instructions to determine ifthe length of the decrease in performance of the primary virtual machinewarrants creation of the secondary virtual machine.
 15. A computersystem for providing additional virtual machines to handle increasedworkloads, the computer system comprising: one or more computerprocessors; one or more computer readable storage media; and programinstructions, stored on the one or more computer readable storage mediafor execution by at least one of the one or more computer processors,the program instructions comprising: program instructs to provide aresource reservoir, wherein the resource reservoir is a pool ofresources that are allocated to and shared between a plurality ofreserve virtual machines, a reserve virtual machine of the plurality ofreserve virtual machines corresponding to a primary virtual machine froma plurality of primary virtual machines, wherein each reserve virtualmachine of the plurality of reserve virtual machines fulfills a resourcerequirement from the resource reservoir, and wherein a sum of theresource requirements of the plurality of reserve virtual machines isgreater than a sum of total resources within the resource reservoir;program instructions to determine a decrease in performance of theprimary virtual machine; in response to the decrease in performance ofthe primary virtual machine, program instructions to apply at least aportion of workload of the primary virtual machine to the correspondingreserve virtual machine; and program instructions, in response toapplying at least a portion of the workload to the corresponding reservevirtual machine, to indicate that resources used by the reserve virtualmachine are unavailable to remaining reserve virtual machines from theresource reservoir.
 16. The computer system of claim 15, furthercomprising program instructions, stored on the one or more computerreadable storage media for execution by at least one of the one or morecomputer processors, to: determine the decrease in performance of theprimary virtual machine will last past a threshold length; deploy asecondary virtual machine; and apply at least a portion of the workloadof the primary virtual machine and the reserve virtual machine to theprimary virtual machine and the secondary virtual machine.
 17. Thecomputer system of claim 15, further comprising program instructions,stored on the one or more computer readable storage media for executionby at least one of the one or more computer processors, to: apply all ofthe workload to the primary virtual machine when the reserve virtualmachine is not needed to address the decrease in performance of theprimary virtual machine; and indicate resources used by the reservevirtual machine are available to the plurality of reserve virtualmachines from the resource reservoir.
 18. The computer system of claim15, further comprising program instructions, stored on the one or morecomputer readable storage media for execution by at least one of the oneor more computer processors, to: determine a size of the resourcereservoir from a number of parameters comprising: a probability of theworkload growing, a probability of the primary virtual machine failing,a rate at which the workload can grow, a time it takes to deploy asecondary virtual machine, and an agreement stating what percentage oftime a growth in the workload must be accommodated without delay. 19.The computer system of claim 15, wherein the program instructions toapply at least a portion of the workload of the primary virtual machineto the reserve virtual machine comprise: program instructions to providea cache; program instruction to transfer a workload to the cache;program instructions to update the workload on the cache with progressmade on the workload by the primary virtual machine; programinstructions to update the reserve virtual machine with the workload onthe cache; and program instructions to apply the workload on the cacheto the primary virtual machine and the reserve virtual machine, whereinthe workload is shared between both virtual machines.
 20. The computersystem of claim 16, wherein the program instructions to apply at least aportion of the workload of the primary virtual machine and the reservevirtual machine to the primary virtual machine and the secondary virtualmachine comprise: program instructions to provide a cache; programinstructions to transfer the workload to the cache; program instructionsto update the workload on the cache with progress made on the workloadby the primary virtual machine and reserve virtual machine; programinstruction to update the secondary virtual machine with the workload onthe cache; program instructions to apply the workload on the cache tothe primary virtual machine and the secondary virtual machine, whereinthe workload is shared between both virtual machines; and programinstructions to indicate resources used by the reserve virtual machineare available to the plurality of reserve virtual machines from theresource reservoir.